import React from "react"
//  商品列表
export async function goodsManagementPage(params) {
  return await React.$postJson('product/api/b/storeGoods/non-self/management/page', params);
}
// 适用宠物下拉
export async function getPetTagsList(params) {
  return await React.$post('management/tSysDictionaries/list', params);
}
// 商品类目
export async function getStoreClassifyTree(params) {
  return await React.$post('product/api/b/storeInfo/queryStoreClassifyTree', params);
}
// 新建商品
export async function getStoreGoodsAdd(params) {
  return await React.$postJson('product/api/b/storeGoods/non-self/insert', params);
}
// 商品详情
export async function getStoreGoodsDetails(params) {
  return await React.$postJson('product/api/b/storeGoods/non-self/getGoodsDetail', params);
}
//编辑商品
export async function getStoreGoodsEdit(params) {
  return await React.$postJson('product/api/b/storeGoods/non-self/update', params);
}
// 商品上架
export async function getStoreGoodsOnShelf(params) {
  return await React.$postJson('product/api/b/storeGoods/non-self/onShelf', params);
}
//商品下架
export async function getStoreGoodsOffShelf(params) {
  return await React.$postJson('product/api/b/storeGoods/non-self/offShelf', params);
}
//查看申请记录
export async function goodsPutAwayRecordList(params) {
  return await React.$postJson('product/api/b/storeGoods/non-self/goodsPutawayRecord/list', params);
}
//商品取消申请上架
export async function goodsCancelApplyOnShelf(params) {
  return await React.$postJson('product/api/b/storeGoods/non-self/cancelApplyOnShelf', params);
}
//商品申请上架
export async function goodsApplyOnShelf(params) {
  return await React.$postJson('product/api/b/storeGoods/non-self/applyOnShelf', params);
}
// 商品类目搜素列表下拉
export async function goodsClassifyList(params) {
  return await React.$post('admin/goodsClassify/list', params);
}
// 复制口令
export async function getSharVirtualProductPass(params) {
  return await React.$get('trade/api/c/sharVirtualProductPass', params);
}
